use std::io::Write;

#[cfg(test)]
mod tests {
    #[test]
    fn test_macro_write() {
        let mut w = Vec::new();
        write!(&mut w, "test")?;
        write!(&mut w, "formatted {}", "arguments")?;

        assert_eq!(w, b"testformatted arguments");
    }
}
